<link rel="stylesheet" type="text/css" href="../css/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../css/themes/icon.css">

<div id="panel-satisfaction-outpatient-question-pop" data-options="border:false;width:100%">
	<div class="easyui-panel list-panel" data-options="openAnimation:'slide',closeAnimation:'slide'">
	  	<div class="well well-small" style="margin-left: 5px;margin-top: 5px">
			<p>
				<span class="badge">提示</span>
				 <strong><font color="red">双击</font></strong> 记录行, 可以查看门诊问卷满意度详情
			</p>			
		</div>   
	
		<table class="easyui-datagrid dg-list"  
		data-options="rownumbers:true,
		animate: true,							
		striped:true,
		border:true,
		//singleSelect:false,
		idField: 'id',					
		fitColumns: true,
		checkOnSelect:true,
		selectOnCheck:true,
		width : 'auto',
		pagination : true">
		
			<thead>						
				<tr>				
					<th field="name" width="120" align="center">问卷内容</th>				
				<th field="total" width="40" align="center">评价人数</th>
				<th field="fcmy" width="40" align="center" data-options="
					styler: function(value,row,index){
						if (value > 0){
							return 'color:green;';							
						}
					}
				">非常满意</th>
				<th field="my" width="40" align="center" data-options="
					styler: function(value,row,index){
						if (value > 0){
							return 'color:green;';							
						}
					}
				">满意</th>
				<th field="jbmy" width="40" align="center" data-options="
					styler: function(value,row,index){
						if (value > 0){
							return 'color:green;';							
						}
					}
				">基本满意</th>				
				<th field="bmy" width="40" align="center" data-options="
					styler: function(value,row,index){
						if (value > 0){
							return 'color:red;';							
						}
					}
				">不满意</th>		
				<th field="fcbmy" width="40" align="center" data-options="
					styler: function(value,row,index){
						if (value > 0){
							return 'color:red;';							
						}
					}
				">非常不满意</th>
				<th field="myl" width="40" align="center" data-options="
					styler: function(value,row,index){
						if (value){
							if( value <= 70)
							return 'color:red;';
							else
							return 'color:green;';							
						}else
						return null
					},formatter: function(value,row,index){
						if (value && value > 0){
							var _value = parseInt(value)
							return   _value.toFixed(2) +'%';							
						}
					}					
				">满意率</th>											
				</tr>                         
			</thead>			
		</table>
	</div>
	
	<div class="easyui-panel details-panel" data-options="closed:true,openAnimation:'slide',closeAnimation:'slide'">
	  	   
		<div>						
			<a href="javascript:void(0);" class="easyui-linkbutton function-btn l-btn l-btn-small l-btn-plain" iconcls="icon-undo" plain="true">返回</a>
		</div>
		<table class="easyui-datagrid dg-list"  
			data-options="rownumbers:true,
			animate: true,							
			striped:true,
			border:true,
			//singleSelect:false,
			idField: 'id',					
			fitColumns: true,
			checkOnSelect:true,
			selectOnCheck:true,
			width : 'auto',
			pagination : true">
			
			<thead>						
				<tr>				
					<th field="problem_subject" width="80" align="center">问题内容</th>
					<th field="patient_code" width="60" align="center">门诊号</th>
					<th field="patient_name" width="40" align="center">病人姓名</th>
					<th field="score" width="40" align="center">分数(5分为满分)</th>								
				</tr>                    
			</thead>
			
		</table>
	</div>
	
</div> 

 
<script>
requirejs(['popListPage','satisEvaluateInfo','domReady!'],function(flowedit,satisEvaluateInfo,doc){
	flowedit.init({doc:doc,
		rootId:'panel-satisfaction-outpatient-question-pop',				
		subSystemCode:'satisfaction',
		moduleCode:'satisEvaluateInfo',
		queryModule:'satisEvaluate',		
		rowClick:satisEvaluateInfo.clickBizRow,		
		queryMethod:'getOutpatientQuestionDomain'
	});
});	
</script>

